package com.bawei.erp.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.bawei.erp.mapper.InDetailsMapper;
import com.bawei.erp.model.InDetails;
import com.bawei.erp.service.StockInDetailsService;

@Service
public class StockInDetailsServiceImpl implements StockInDetailsService {

	@Resource
	private InDetailsMapper inDetailsMapper;

	@Override
	public void addInDetails(InDetails inDetails) {
		inDetailsMapper.insert(inDetails);
	}

	@Override
	public List<InDetails> getInDetails() {
		return inDetailsMapper.selectByExample(null);
	}
}
